package com.jsgt.greekfire.common

fun Array<String?>.containsIgnoreCase(element: String?): Boolean {
    if (element == null) {
        for (index in indices) {
            if (this[index] == null) {
                return index >= 0
            }
        }
    } else {
        for (index in indices) {
            if (element.equals( this[index], ignoreCase = true)) {
                return index >= 0
            }
        }
    }
    return false
}